]> dgit.raspbian.org Git - gnome-shell.git/commit
appDisplay: Remove dragMonitor when FolderIcon is destroyed
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 23 Nov 2019 18:57:02 +0000 (19:57 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 27 Mar 2020 22:38:41 +0000 (22:38 +0000)
commit766e9034e25edff4eb82ebfec46395f29e1a7b87
tree36f773802924c75ce35d1cbbe2fbf9e2c3077e19
parent91748aedb75d2f9f5f8259ce96ababa089c229d3
appDisplay: Remove dragMonitor when FolderIcon is destroyed

While it should be impossible to destroy a FolderIcon while a DnD action
is still going on, there might still be rare cases where this happens
(ie. when a folder is removed because an app got deleted during DnD).

So make sure we're on the safe side here and don't potentially leave
dragMonitors around after the icon is destroyed by removing the
dragMonitor inside the onDestroy handler of the FolderIcon, just like we
do for AppIcons.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/849
js/ui/appDisplay.js